﻿<phone:PhoneApplicationPage
    x:Class="TestMatrix.Phone.ReleaseInfoPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Primitives"                
    xmlns:local="clr-namespace:TestMatrix.Phone"
    
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid.Resources>
                <Style TargetType="telerikPrimitives:RadDataBoundListBoxItem" x:Key="ItemContainerStyle">
                    <Setter Property="Background" Value="Transparent"/>
                    <Setter Property="BorderThickness" Value="0" />
                    <Setter Property="BorderBrush" Value="Transparent" />
                    <Setter Property="Padding" Value="0" />
                    <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
                    <Setter Property="VerticalContentAlignment" Value="Center"/>
                    <Setter Property="HorizontalAlignment" Value="Stretch"/>
                    <Setter Property="VerticalAlignment" Value="Center"/>
                    <Setter Property="CacheMode" Value="BitmapCache"/>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="telerikPrimitives:RadDataBoundListBoxItem">
                                <Border x:Name="LayoutRoot" Background="{TemplateBinding Background}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                                    <ContentControl x:Name="ContentContainer" 
                                          HorizontalAlignment="{TemplateBinding HorizontalAlignment}" 
                                          VerticalAlignment="{TemplateBinding VerticalAlignment}" 
                                          HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                                          VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                                          Margin="{TemplateBinding Padding}" 
                                          Content="{TemplateBinding Content}" 
                                          ContentTemplate="{TemplateBinding ContentTemplate}"
                                          />
                                </Border>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <DataTemplate x:Name="ListBoxItemTemplate">
                    <Border Padding="0, 10, 0, 8" BorderThickness="0, 0, 0, 1" BorderBrush="#01636A">
                        <Grid>
                            <Grid Margin="15, 0, 0, 0">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>

                                <StackPanel Orientation="Horizontal" Grid.Row="0">
                                    <TextBlock Text="EBIProjectName: " FontSize="17" FontWeight="Bold" Foreground="{StaticResource PhoneSubtleBrush}"/>
                                    <TextBlock Text="{Binding EBIProjectName}" FontSize="17"/>
                                </StackPanel>
                                <StackPanel Orientation="Horizontal" Grid.Row="1">
                                    <TextBlock Text="ReleaseCnt: " FontSize="17" FontWeight="Bold" Foreground="{StaticResource PhoneSubtleBrush}"/>
                                    <TextBlock Text="{Binding ReleaseCnt}" FontSize="17" />
                                </StackPanel>
                                <StackPanel Orientation="Horizontal" Grid.Row="2">
                                    <TextBlock Text="ReleaseTimes: " FontSize="17" FontWeight="Bold" Foreground="{StaticResource PhoneSubtleBrush}"/>
                                    <TextBlock Text="{Binding ReleaseTimes}" FontSize="17" />
                                </StackPanel>
                                <StackPanel Orientation="Horizontal" Grid.Row="3">
                                    <TextBlock Text="TestCaseCnt: " FontSize="17" FontWeight="Bold" Foreground="{StaticResource PhoneSubtleBrush}"/>
                                    <TextBlock Text="{Binding TestCaseCnt}" FontSize="17"/>
                                </StackPanel>
                                <StackPanel Orientation="Horizontal" Grid.Row="4">
                                    <TextBlock Text="ChangeSetCnt: " FontSize="17" FontWeight="Bold" Foreground="{StaticResource PhoneSubtleBrush}"/>
                                    <TextBlock Text="{Binding ChangeSetCnt}" FontSize="17"/>
                                </StackPanel>
                                <StackPanel Orientation="Horizontal" Grid.Row="5">
                                    <TextBlock Text="FixedBug: " FontSize="17" FontWeight="Bold" Foreground="{StaticResource PhoneSubtleBrush}"/>
                                    <TextBlock Text="{Binding FixedBug}" FontSize="17"/>
                                </StackPanel>
                                <StackPanel Orientation="Horizontal" Grid.Row="6">
                                    <TextBlock Text="ChangeRequest: " FontSize="17" FontWeight="Bold" Foreground="{StaticResource PhoneSubtleBrush}"/>
                                    <TextBlock Text="{Binding ChangeRequest}" FontSize="17"/>
                                </StackPanel>
                                <StackPanel Orientation="Horizontal" Grid.Row="7">
                                    <TextBlock Text="Feature: " FontSize="17" FontWeight="Bold" Foreground="{StaticResource PhoneSubtleBrush}"/>
                                    <TextBlock Text="{Binding Feature}" FontSize="17"/>
                                </StackPanel>

                                <StackPanel Orientation="Horizontal" Grid.Row="8">
                                    <TextBlock Text="Issue: " FontSize="17" FontWeight="Bold" Foreground="{StaticResource PhoneSubtleBrush}"/>
                                    <TextBlock Text="{Binding Issue}" FontSize="17"/>
                                </StackPanel>

                                <StackPanel Orientation="Horizontal" Grid.Row="9">
                                    <TextBlock Text="Task: " FontSize="17" FontWeight="Bold" Foreground="{StaticResource PhoneSubtleBrush}"/>
                                    <TextBlock Text="{Binding Task}" FontSize="17"/>
                                </StackPanel>

                                <StackPanel Orientation="Horizontal" Grid.Row="10">
                                    <TextBlock Text="UserStory: " FontSize="17" FontWeight="Bold" Foreground="{StaticResource PhoneSubtleBrush}"/>
                                    <TextBlock Text="{Binding UserStory}" FontSize="17"/>
                                </StackPanel>
                            </Grid>
                        </Grid>
                    </Border>
                </DataTemplate>
            </Grid.Resources>

            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
            </Grid.RowDefinitions>

            <Border Grid.Row="0" BorderThickness="0, 3, 0, 3" BorderBrush="#0795B9" Background="{StaticResource PhoneChromeBrush}" Padding="0, 8, 0, 8">
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="20, 0, 20, 0">
                    <TextBlock VerticalAlignment="Center" Text="Overall EBI Release" FontWeight="Bold" FontSize="17"/>
                </StackPanel>
            </Border>

            <telerikPrimitives:RadDataBoundListBox CacheMode="BitmapCache" x:Name="DataBoundListBox" Grid.Row="1" ItemContainerStyle="{StaticResource ItemContainerStyle}" ItemTemplate="{StaticResource ListBoxItemTemplate}"/>
        </Grid>
    </Grid>

</phone:PhoneApplicationPage>